package com.spring2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * spirng2.*  开始使用注解驱动
 *      2.0 @Repository   @Aspect
 *      2.5 @Controller  @Service   @RequestMapping
 *
 *
 *
 */
public class Demo02 {
    public static void main(String[] args) {
        ApplicationContext context = new FileSystemXmlApplicationContext("classpath:applicationContext.xml");
        Object testService = context.getBean(TestService.class);
        System.out.println(testService);
    }
}
